﻿Imports Entidad
Imports Datos
Public Class BarraNegocio

    Dim dao As New BarraDatos

    Function obtenerDatosBarra(barra As String) As ArticuloCodigoBarra
        Return dao.obtenerDatosBarra(barra)
    End Function

    Function validarBandeja(codigoBandeja As String) As Boolean
        Return dao.validarBandeja(codigoBandeja)
    End Function

    Function obtenerCodigosBarra(codArticulo As String) As DataSet
        Return dao.obtenerCodigosBarra(codArticulo)
    End Function

    Function obtenerCodigoAutogenerado() As String
        Return dao.obtenerCodigoAutogenerado()
    End Function

    Function registrarCodigoBarra(barra As ArticuloProveedorBarra) As Boolean
        Return dao.registrarCodigoBarra(barra)
    End Function

    Function actualizarCodigoBarra(barra As ArticuloProveedorBarra) As Boolean
        Return dao.actualizarCodigoBarra(barra)
    End Function

    Function verificarExistenciaBarra(codCIA As String, codArticulo As String, codProveedor As String, codBarra As String, apcCodigo As String) As DataSet
        Return dao.verificarExistenciaBarra(codCIA, codArticulo, codProveedor, codBarra, apcCodigo)
    End Function

    Function eliminarCodigoBarra(codCIA As String, codArticulo As String, codProveedor As String, codBarra As String, codAPC As String) As Boolean
        Return dao.eliminarCodigoBarra(codCIA, codArticulo, codProveedor, codBarra, codAPC)
    End Function

    Function obtenerDatoBarraXNivel(artCodigo As String, nivel As String) As DataSet
        Return dao.obtenerDatoBarraXNivel(artCodigo, nivel)
    End Function

End Class
